package com.czk.factory;

import com.czk.exception.BeansException;

/**
 *
 * 提供获取对象的方法
 *
 * @Author:ChenZhangKun
 * @Date: 2023/2/19 10:17
 */
public interface BeanFactory {
    /**
     * 获取bean对象
     *
     * @return
     * @throws BeansException
     */
    Object getBean(String name) throws BeansException;

    Object getBean(String name,Object... args) throws BeansException;
}
